package risk

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ CustomerRiskModel = (*customCustomerRiskModel)(nil)

type (
	// CustomerRiskModel is an interface to be customized, add more methods here,
	// and implement the added methods in customCustomerRiskModel.
	CustomerRiskModel interface {
		customerRiskModel
	}

	customCustomerRiskModel struct {
		*defaultCustomerRiskModel
	}
)

// NewCustomerRiskModel returns a model for the database table.
func NewCustomerRiskModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) CustomerRiskModel {
	return &customCustomerRiskModel{
		defaultCustomerRiskModel: newCustomerRiskModel(conn, c, opts...),
	}
}
